Skip to content

fix(grid): pin a column with a small minWidth through pinned - 22.3.x - #18074

Open
onlyexeption wants to merge 2 commits into
22.3.xfrom
ibarakov/fix-18039-22.3.x
Open

onlyexeption wants to merge 2 commits into
22.3.xfrom
ibarakov/fix-18039-22.3.x

Conversation

@onlyexeption

Copy link
Copy Markdown
Contributor

Closes #18039

Description

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant labels have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the column-width and pinning fix.

No open issues 🎉

What changed in this PR

Fixes #18039 by correcting width calculations for grid columns with no explicit width and a minWidth below 136px, allowing the pinned input to pin and unpin them reliably.

Changes:

  • Recalculates constrained column widths and prevents non-finite values from becoming the default width.
  • Adds regression tests for pinning, unpinning, hidden columns, and sizing when space is insufficient.
  • Documents the fix in the changelog.
File Description
projects/​igniteui-angular/​grids/​grid/​src/​grid.pinning.spec.ts Adds small-minimum-width pinning and unpinning regression tests.
projects/​igniteui-angular/​grids/​grid/​src/​column-resizing.spec.ts Tests minimum-width sizing when the grid lacks space.
projects/​igniteui-angular/​grids/​core/​src/​columns/​column.component.ts Corrects width recalculation and stores the constrained default width.
CHANGELOG.md Documents the pinning fix and previous non-finite width behavior.

Review effort: Balanced

@Marina-L-Stoyanova Marina-L-Stoyanova added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Dec 2, 2026
@Marina-L-Stoyanova

Copy link
Copy Markdown
Contributor

Same as PRs #18064 and #18069

@Marina-L-Stoyanova Marina-L-Stoyanova removed the 💥 status: in-test PRs currently being tested label Dec 2, 2026
@mddragnev
mddragnev self-requested a review December 2, 2026 15:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants